@echo off

set PATH=%PATH%;%CD%\bin\lib
start /B "%CD%\bin\php-cgi.exe" -c "%CD%\etc\php.ini" -b 127.0.0.1:3001
echo Crosslight listening at localhost:3000. Ctrl-C to end.
start /max http://localhost:3000/info.php
"%CD%\bin\lighttpd" -m "%CD%\bin\lib" -f etc/lighttpd.conf -D

taskkill /F /IM lighttpd.exe
taskkill /F /IM php-cgi.exe
del app\tmp\lighttpd.pid
